All Functions of Week 7

as.character

{base}

Coerce a vector to character

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

confint

{stats}

Calculate confidence Intervals for Model Parameters

names

{base}

Get or set names of an object

is.na

{base}

Check if a value is NA/elements of vector are NA

dim

{base}

Get dimensions of a data frame

geom_vline

{GGPLOT2}

Draws a vertical line

ggsave

{GGPLOT2}

Save a ggplot to file

c

{base}

Combine values/vectors into a vector

lm

{stats}

Fit linear models using least squares

element_text

{GGPLOT2}

Customise text in GGPLOT2

save_plot

{cowplot}

Save a plot to a file

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

ggplot

{GGPLOT2}

Create a ggplot graph

factor

{base}

Create a factor

summary

{base}

Obtain summary statistics or detailed regression output

as.numeric

{base}

Coerce a vector to numeric

write.csv

{utils}

write a csv file to a data frame

mutate

{dplyr}

Create new variables

read_csv

{readr}

Read CSV files

theme

{GGPLOT2}

Customize ggplot themes

ylab

{GGPLOT2}

Label the y axis (ggplot)

with

{base}

evaluate expression in the context of a data frame

modelsummary

{modelsummary}

Creates regression and data tables

ggtitle

{GGPLOT2}

Generates a title for a ggplot graph

save_tt

{tinytable}

Save a tinytable object to a file

xlab

{GGPLOT2}

Label the x axis (ggplot)

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

element_line

{GGPLOT2}

Customise line appearance

class

{base}

Retrieve class of an R object

mean

{base}

Get mean of a vector

geom_hline

{GGPLOT2}

Add a horizontal line in GGPLOT2

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

setwd

{base}

Set Working Directory

group_tt

{tinytable}

Grouping in tinytable

element_blank

{GGPLOT2}

This theme element draws nothing, and assigns no space

factor

{base}

Create factor variables

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

recode

{dplyr}

Recode a variable

library

{base}

Load an R package

filter

{dplyr}

Filter out rows of a data frame according to logical vector

list

{base}

Create a list object

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

replace

{base}

Replace elements in a vector

geom_point

{GGPLOT2}

Generates a scatter plot

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

The end!